<template>
  <div class="count">
    <h2>我是count组件</h2>
    <p class="content">count的值是{{ count }}</p>
    <button @click="increment()">累加</button>
  </div>
</template>

<script>
export default {
  props: ["count", "increment"],
};
</script>

<style scoped>
.count {
  background-color: pink;
}
</style>